package com.mc.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mc.dao.ArticlePropertyMapper;
import com.mc.model.AProperty;
import com.mc.model.ArticleProperty;
import com.mc.service.ArticlePropertyService;

@Service
public class ArticlePropertyServiceImpl implements ArticlePropertyService {
	
	@Autowired
	private ArticlePropertyMapper articlePropertyMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return articlePropertyMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(ArticleProperty record) {
		return articlePropertyMapper.insert(record);
	}

	@Override
	public int insertSelective(ArticleProperty record) {
		return articlePropertyMapper.insertSelective(record);
	}

	@Override
	public ArticleProperty selectByPrimaryKey(Integer id) {
		return articlePropertyMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ArticleProperty record) {
		return articlePropertyMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ArticleProperty record) {
		return articlePropertyMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<ArticleProperty> selectByArticleID(Integer articleId) {
		return articlePropertyMapper.selectByArticleID(articleId);
	}


}